package com.mo.list;

/**
 * @ClassName TestNode
 * @Description TODO
 * @Author Administrator
 * @Date 2021/8/3
 * @Version 1.0
 */
public class TestNode {

    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5};
        Node head = NodeUtil.headInsert(arr);
        Node tail = NodeUtil.tailInsert(arr);
        System.out.println(Node.toStringTimes);
        System.out.println(head);
        System.out.println(tail.data);
        System.out.println(NodeUtil.size(head));
        System.out.println(NodeUtil.insertElementAfter(8, head));
        System.out.println(NodeUtil.delete(head));
        System.out.println(NodeUtil.search(head,3));
        System.out.println(NodeUtil.searchOffset(head,3));
    }
}
